<?php
$config['admintype'] = array(
		'global'=>array(
			  'name'=>'全局管理',
			  'module'=>'global',
			  'list'=>array(
						 'quanjugl'=>array('sonname'=>'后台首页',
									'sonlist'=>array(
													 'welcome'=>array('linkname'=>'欢迎页','link'=>'/ychadmin/welcome/'),
													 'passwd'=>array('linkname'=>'修改管理员密码','link'=>'/ychadmin/welcome/passwd')
											   )
							  )
					)
		),
       'borrow'=>array(
	         'name'=>'贷款管理',
			 'module'=>'borrow',
			 'list'=>array(
			             'shenhegl'=>array('sonname'=>'审核管理',
						            'sonlist'=>array(
													'first'=>array('linkname'=>'发标待审','link'=>'/ychadmin/borrow/borrowlist/?fstatus=0'),
													'full'=>array('linkname'=>'已满标待审','link'=>'/ychadmin/borrow/borrowlist/?qtype=full'),
													'creditor_first'=>array('linkname'=>'债权转让待审核','link'=>'/ychadmin/creditor/verify_list?fstatus=1'),
													'creditor_second'=>array('linkname'=>'债权转让待复审','link'=>'/ychadmin/creditor/reverify_list'),
//													'amount'=>array('linkname'=>'借款额度审批','link'=>'/ychadmin/amount/applylist/'),
													//'interest'=>array('linkname'=>'利率明细设置','link'=>'/ychadmin/borrow/aprshow'),
													//'trailer'=>array('linkname'=>'发标预告','link'=>'/ychadmin/borrow/tomorrow')
											   )
						      ),
 					/*	'yjb'=>array('sonname'=>'易居宝',
						            'sonlist'=>array(
													'yjb_first'=>array('linkname'=>'发标待审','link'=>'/ychadmin/yjb/borrowlist.html?fstatus=1'),
													'yjb_full'=>array('linkname'=>'所有借款','link'=>'/ychadmin/yjb/borrowlist.html'),
													'yjb_tender_record'=>array('linkname'=>'投标记录','link'=>'/ychadmin/yjb/tenderlist.html')
											   )
						      ),*/
				         'dkgl'=>array('sonname'=>'贷款管理',
						            'sonlist'=>array(
													 'all'=>array('linkname'=>'所有借款','link'=>'/ychadmin/borrow/borrowlist/?fstatus=-2'),
													 'now'=>array('linkname'=>'正在招标款','link'=>'/ychadmin/borrow/borrowlist/?fstatus=1'),
													 'liubiao'=>array('linkname'=>'流标','link'=>'/ychadmin/borrow/borrowlist/?fstatus=2'),
													 'month'=>array('linkname'=>'资金统计','link'=>'/ychadmin/borrow/index.html'),
													 'tender'=>array('linkname'=>'投标记录','link'=>'/ychadmin/borrow/tenderlist')
											   )
				           ),
				           'dbjggl'=>array('sonname'=>'担保机构管理',
						            'sonlist'=>array(
													 'guarantee_list'=>array('linkname'=>'合作机构列表','link'=>'/ychadmin/guarantee/guaranteelist'),
													 'guarantee_add'=>array('linkname'=>'添加合作机构','link'=>'/ychadmin/guarantee/add_view'),
											   )
				           )
			        )
			),

	   'account'=>array(
			  'name'=>'资金管理',
			  'module'=>'account',
			  'list'=>array(
						 'zijingguanli'=>array('sonname'=>'资金管理',
									'sonlist'=>array(
													 'often'=>array('linkname'=>'实时资金日志','link'=>'/ychadmin/accountlog/accountloglist/'),
													 'accountlog'=>array('linkname'=>'资金日志','link'=>'/ychadmin/accountlog/accountlogalllist/'),
													 'account'=>array('linkname'=>'账户信息','link'=>'/ychadmin/account/accountlist/'),
													 'accountcash'=>array('linkname'=>'提现列表','link'=>'/ychadmin/accountcash/accountcashlist/'),
													 'accountrecharge'=>array('linkname'=>'充值列表','link'=>'/ychadmin/accountrecharge/accountrechargelist/')
											   )
							  ),

						 'chongzhikoufei'=>array('sonname'=>'充值扣费',
									'sonlist'=>array(
													 'recharge'=>array('linkname'=>'平台充值','link'=>'/ychadmin/accountrecharge/recharge_view/'),
													 'deduct'=>array('linkname'=>'费用扣除','link'=>'/ychadmin/accountcash/deduct_view/')
											   )
						   ),
						 'huankuanguanli'=>array('sonname'=>'还款管理',
									'sonlist'=>array(
													 'repayment'=>array('linkname'=>'未还款','link'=>'/ychadmin/borrow/repayment/?fstatus=0'),
													 'lz_repayment'=>array('linkname'=>'流转未还款','link'=>'/ychadmin/borrow/lz_repayment/?fstatus=0'),
//						   							'yjb_received'=>array('linkname'=>'易居宝回款记录','link'=>'/ychadmin/yjb/repaylist.html'),
													 'received'=>array('linkname'=>'回款','link'=>'/ychadmin/accountrecharge/received_payments')
											   )
						   ),
						   'tuoguanduizhang'=>array('sonname'=>'托管对账',
									'sonlist'=>array(
													 'tgzhuanzhang'=>array('linkname'=>'转账','link'=>'/ychadmin/loanorderquery/tgzhuanzhang'),
													 'tgrecharge'=>array('linkname'=>'充值','link'=>'/ychadmin/loanorderquery/tgrecharge'),
						   							 'tgcash'=>array('linkname'=>'提现','link'=>'/ychadmin/loanorderquery/tgcash'),
						   							 'pcharge'=>array('linkname'=>'平台充值','link'=>'/ychadmin/loanorderquery/precharge')
											   )
						   )
					)
		),

	   'user'=>array(
			  'name'=>'客户管理',
			  'module'=>'user',
			  'list'=>array(
						 'yonghuguanli'=>array('sonname'=>'用户管理',
									'sonlist'=>array(
													 'ulist'=>array('linkname'=>'用户列表','link'=>'/ychadmin/user/ulist'),
													'user_add'=>array('linkname'=>'添加用户','link'=>'/ychadmin/user/add'),
													 'leaveword'=>array('linkname'=>'留言列表','link'=>'/ychadmin/leaveword/background_leaveword_list'),
													 'user_rank'=>array('linkname'=>'会员级别管理','link'=>'/ychadmin/user/leve'),
													'user_datum'=>array('linkname'=>'会员资料类型','link'=>'/ychadmin/user/datum'),

											   )
							  ),
							  'renzhenggl'=>array('sonname'=>'认证管理',
									'sonlist'=>array(
													 'attestation'=>array('linkname'=>'认证信息列表','link'=>'/ychadmin/user/attestation_all'),
													 'real'=>array('linkname'=>'实名认证','link'=>'/ychadmin/user/real_status'),
													 'user_vip'=>array('linkname'=>'VIP审核','link'=>'/ychadmin/user/vip_ulist'),
													 'documentation'=>array('linkname'=>'材料审核','link'=>'/ychadmin/user/documentation/?fstatus=-1')
											   )
							  ),
						    'jifenguanli'=>array('sonname'=>'积分管理',
									'sonlist'=>array(
						   							'credit'=>array('linkname'=>'增加/扣除积分','link'=>'/ychadmin/credit/credit_view/'),
													 'clist'=>array('linkname'=>'积分列表','link'=>'/ychadmin/credit/clist'),
													 'clog'=>array('linkname'=>'积分日志','link'=>'/ychadmin/credit/creditlog'),
						   							 'crule'=>array('linkname'=>'积分规则','link'=>'/ychadmin/credit/crule')

											   )
						   ),
							  'invitegl'=>array('sonname'=>'推荐人管理',
									'sonlist'=>array(
													 'invite'=>array('linkname'=>'投资记录','link'=>'/ychadmin/reference'),
											   )
						)
					)

		),

	   'site'=>array(
			  'name'=>'栏目管理',
			  'module'=>'site',
			  'list'=>array(
						 'lanmuguanli'=>array('sonname'=>'文章管理',
									'sonlist'=>array(
													 'site_article'=>array('linkname'=>'文章分类','link'=>'/ychadmin/site/sitelist/'),
													 'site_news'=>array('linkname'=>'文章列表','link'=>'/ychadmin/article/articlelist')
											   )
							  ),

						 'hezuoguanli'=>array('sonname'=>'友情链接管理',
									'sonlist'=>array(
													 'links'=>array('linkname'=>'友情合作列表','link'=>'/ychadmin/links/linkslist/'),
													 'links_add'=>array('linkname'=>'添加友情合作','link'=>'/ychadmin/links/add_view/')
											   )
						   ),
						 'guendongtuguanli'=>array('sonname'=>'滚动图片管理',
									'sonlist'=>array(
													 'scrollpic'=>array('linkname'=>'图片列表','link'=>'/ychadmin/scrollpic/scrollpiclist/'),
													 'scrollpic_add'=>array('linkname'=>'添加图片','link'=>'/ychadmin/scrollpic/add_view/')
											   )
						   )
					)
		),
	   'system'=>array(
			  'name'=>'系统管理',
			  'module'=>'system',
			  'list'=>array(
						 'xitongguanli'=>array('sonname'=>'系统管理',
									'sonlist'=>array(
													 'systemadmin'=>array('linkname'=>'管理员管理','link'=>'/ychadmin/systemadmin/admin_list/'),
													 'sytemadmin_type'=>array('linkname'=>'管理员类型','link'=>'/ychadmin/systemadmin/admin_type/'),
													 /*'backup'=>array('linkname'=>'数据备份','link'=>'/ychadmin/backup/backup_show_db'),*/
													//'sys_adlog'=>array('linkname'=>'访问日志','link'=>'/ychadmin/systemadmin/adloglst'),
													'sys_adlog'=>array('linkname'=>'访问日志','link'=>'/ychadmin/log/load_log_info')
											   )
							  ),
							  'xitongguancs'=>array('sonname'=>'系统参数',
									'sonlist'=>array(
													 'webparameter'=>array('linkname'=>'网站参数','link'=>'/ychadmin/systemset/sysparameter/?ftype=1'),
													 'borrowparameter'=>array('linkname'=>'贷款参数','link'=>'/ychadmin/systemset/sysparameter/?ftype=2'),
							   						// 'productparameter'=>array('linkname'=>'产品参数','link'=>'/ychadmin/systemset/sysparameter/?ftype=7'),
													 'picparameter'=>array('linkname'=>'图片参数','link'=>'/ychadmin/systemset/sysparameter/?ftype=3'),
													 'emailparameter'=>array('linkname'=>'邮件配置','link'=>'/ychadmin/systemset/sysparameter/?ftype=4'),
							 						 'messageparameter'=>array('linkname'=>'短信配置','link'=>'/ychadmin/systemset/sysparameter/?ftype=6'),
							  						 'loginparameter'=>array('linkname'=>'第三方登录配置','link'=>'/ychadmin/systemset/sysparameter/?ftype=5'),
							  						 'addparameter'=>array('linkname'=>'添加参数','link'=>'/ychadmin/systemset/addparameter'),

											   )
							  ),
							  'jiekouli'=>array('sonname'=>'通知信息模板管理',
									'sonlist'=>array(
													 'pay'=>array('linkname'=>'第三方支付接口','link'=>'/ychadmin/payment/payonline/'),
													'msgemail'=>array('linkname'=>'邮件模板','link'=>'/ychadmin/msgonline/index/'),
							  						'msgsms'=>array('linkname'=>'短信模板','link'=>'/ychadmin/msgonline/msgsms/'),

							  						//'login'=>array('linkname'=>'第三方登录接口','link'=>'/ychadmin/payment/loginonline/')
											   )
							  )
					)
		),
    'shop'=>array(
             'name'=>'商城管理',
             'module'=>'shop',
             'list'=>array(
                        'shangchengguanli'=>array('sonname'=>'商城管理',
                                   'sonlist'=>array(
                                                    'prolist'=>array('linkname'=>'商品列表','link'=>'/ychadmin/shop/prolist'),
                                                    'shop_type'=>array('linkname'=>'商品分类','link'=>'/ychadmin/shop/shop_type'),
                                                    'shop_add'=>array('linkname'=>'添加商品','link'=>'/ychadmin/shop/view'),
                                                   'order'=>array('linkname'=>'订单列表','link'=>'/ychadmin/shop/order'),
                                                    'notices'=>array('linkname'=>'商城公告','link'=>'/ychadmin/shop/notices'),
                                                    'notices_add'=>array('linkname'=>'添加商城公告','link'=>'/ychadmin/shop/notice_view'),
                                              )
                             )
                   )
       ),
);

//生成头部目录
$config['type'] = array(
'passwd'=>array('link'=>'/ychadmin/welcome/passwd','sub'=>'global','grandpa'=>'全局管理'),
'welcome'=>array('link'=>'/ychadmin/welcome','sub'=>'global','grandpa'=>'全局管理'),

'first'=>array('link'=>'/ychadmin/borrow/borrowlist/?fstatus=0','sub'=>'borrow','grandpa'=>'贷款管理'),
'full'=>array('link'=>'/ychadmin/borrow/borrowlist/?qtype=full','sub'=>'borrow','grandpa'=>'贷款管理'),
'creditor_first'=>array('link'=>'/ychadmin/creditor/verify_list?fstatus=1','sub'=>'borrow','grandpa'=>'贷款管理'),
'creditor_second'=>array('link'=>'/ychadmin/creditor/reverify_list','sub'=>'borrow','grandpa'=>'贷款管理'),
'amount'=>array('link'=>'/ychadmin/amount/applylist/','sub'=>'borrow','grandpa'=>'贷款管理'),
'interest'=>array('link'=>'/ychadmin/borrow/aprshow','sub'=>'borrow','grandpa'=>'贷款管理'),
'trailer'=>array('link'=>'/ychadmin/borrow/tomorrow','sub'=>'borrow','grandpa'=>'贷款管理'),
/*'yjb_first'=>array('link'=>'/ychadmin/yjb/borrowlist.html?fstatus=1','sub'=>'borrow','grandpa'=>'贷款管理'),
'yjb_full'=>array('link'=>'/ychadmin/yjb/borrowlist.html?fstatus=1','sub'=>'borrow','grandpa'=>'贷款管理'),
'yjb_tender_record'=>array('link'=>'/ychadmin/yjb/tenderlist.html','sub'=>'borrow','grandpa'=>'贷款管理'),*/
'tender'=>array('link'=>'/ychadmin/borrow/tenderlist','sub'=>'borrow','grandpa'=>'贷款管理'),
'month'=>array('link'=>'/ychadmin/borrow/index.html','sub'=>'borrow','grandpa'=>'贷款管理'),
'liubiao'=>array('link'=>'/ychadmin/borrow/borrowlist/?fstatus=2','sub'=>'borrow','grandpa'=>'贷款管理'),
'now'=>array('link'=>'/ychadmin/borrow/borrowlist/?fstatus=1','sub'=>'borrow','grandpa'=>'贷款管理'),
'all'=>array('link'=>'/ychadmin/borrow/borrowlist/?fstatus=-2','sub'=>'borrow','grandpa'=>'贷款管理'),

'accountlog'=>array('link'=>'/ychadmin/accountlog/accountlogalllist/','sub'=>'account','grandpa'=>'资金管理'),
'account'=>array('link'=>'/ychadmin/account/accountlist/','sub'=>'account','grandpa'=>'资金管理'),
'accountcash'=>array('link'=>'/ychadmin/accountcash/accountcashlist/','sub'=>'account','grandpa'=>'资金管理'),
'accountrecharge'=>array('link'=>'/ychadmin/accountrecharge/accountrechargelist/','sub'=>'account','grandpa'=>'资金管理'),
'recharge'=>array('link'=>'/ychadmin/accountrecharge/recharge_view/','sub'=>'account','grandpa'=>'资金管理'),
'deduct'=>array('link'=>'/ychadmin/accountcash/deduct_view/','sub'=>'account','grandpa'=>'资金管理'),

'repayment'=>array('link'=>'/ychadmin/borrow/repayment/?fstatus=0','sub'=>'account','grandpa'=>'资金管理'),
'lz_repayment'=>array('link'=>'/ychadmin/borrow/lz_repayment/?fstatus=0','sub'=>'account','grandpa'=>'资金管理'),
'yjb_received'=>array('link'=>'/ychadmin/yjb/repaylist.html','sub'=>'account','grandpa'=>'资金管理'),
'received'=>array('link'=>'/ychadmin/accountrecharge/received_payments','sub'=>'account','grandpa'=>'资金管理'),

'tgzhuanzhang'=>array('link'=>'/ychadmin/loanorderquery/tgzhuanzhang','sub'=>'account','grandpa'=>'资金管理'),
'tgrecharge'=>array('link'=>'/ychadmin/loanorderquery/tgrecharge','sub'=>'account','grandpa'=>'资金管理'),
'tgcash'=>array('link'=>'/ychadmin/loanorderquery/tgcash','sub'=>'account','grandpa'=>'资金管理'),
'often'=>array('link'=>'/ychadmin/accountlog/accountloglist/','sub'=>'account','grandpa'=>'资金管理'),

'crule'=>array('link'=>'/ychadmin/credit/crule','sub'=>'user','grandpa'=>'客户管理'),
'clog'=>array('link'=>'/ychadmin/credit/creditlog','sub'=>'user','grandpa'=>'客户管理'),
'clist'=>array('link'=>'/ychadmin/credit/clist','sub'=>'user','grandpa'=>'客户管理'),
'credit'=>array('link'=>'/ychadmin/credit/credit_view/','sub'=>'user','grandpa'=>'客户管理'),
'user_rank'=>array('link'=>'/ychadmin/user/leve','sub'=>'user','grandpa'=>'客户管理'),
'user_datum'=>array('link'=>'/ychadmin/user/datum','sub'=>'user','grandpa'=>'客户管理'),
'user_vip'=>array('link'=>'/ychadmin/user/vip_ulist','sub'=>'user','grandpa'=>'客户管理'),
'documentation'=>array('link'=>'/ychadmin/user/documentation/?fstatus=-1','sub'=>'user','grandpa'=>'客户管理'),
'leaveword'=>array('link'=>'/ychadmin/leaveword/background_leaveword_list','sub'=>'user','grandpa'=>'客户管理'),
'link'=>array('link'=>'/ychadmin/user/attestation_all','sub'=>'user','grandpa'=>'客户管理'),
'real'=>array('link'=>'/ychadmin/user/real_status','sub'=>'user','grandpa'=>'客户管理'),
'user_add'=>array('link'=>'/ychadmin/user/add','sub'=>'user','grandpa'=>'客户管理'),
'ulist'=>array('link'=>'/ychadmin/user/ulist','sub'=>'user','grandpa'=>'客户管理'),

    'shop_add'=>array('link'=>'/ychadmin/shop/view','sub'=>'shop','grandpa'=>'商城管理'),
    'order'=>array('link'=>'/ychadmin/shop/order','sub'=>'shop','grandpa'=>'商城管理'),
    'lottery_record'=>array('link'=>'/ychadmin/shop/box_list','sub'=>'shop','grandpa'=>'商城管理'),
    'notices'=>array('link'=>'/ychadmin/shop/notices','sub'=>'shop','grandpa'=>'商城管理'),
    'notices_add'=>array('link'=>'/ychadmin/shop/notice_view','sub'=>'shop','grandpa'=>'商城管理'),
    'tree'=>array('link'=>'/ychadmin/activity/treelist','sub'=>'shop','grandpa'=>'商城管理'),
    'year'=>array('link'=>'/ychadmin/activity/nianhuilist','sub'=>'shop','grandpa'=>'商城管理'),
    'reg'=>array('link'=>'/ychadmin/activity/reglist','sub'=>'shop','grandpa'=>'商城管理'),
    'activity_list'=>array('link'=>'/ychadmin/activity/activitylist','sub'=>'shop','grandpa'=>'商城管理'),
    'shop_scrollpic'=>array('link'=>'/ychadmin/shop/scrollpic_list','sub'=>'shop','grandpa'=>'商城管理'),
    'prolist'=>array('link'=>'/ychadmin/shop/prolist','sub'=>'shop','grandpa'=>'商城管理'),
//    'shop_type'=>array('link'=>'/ychadmin/shop/shop_type','sub'=>'shop','grandpa'=>'商城管理'),


'site_article'=>array('link'=>'/ychadmin/site/sitelist/','sub'=>'site','grandpa'=>'栏目管理'),
'links'=>array('link'=>'/ychadmin/links/linkslist/','sub'=>'site','grandpa'=>'栏目管理'),
'links_add'=>array('link'=>'/ychadmin/links/add_view/','sub'=>'site','grandpa'=>'栏目管理'),
'scrollpic'=>array('link'=>'/ychadmin/scrollpic/scrollpiclist/','sub'=>'site','grandpa'=>'栏目管理'),
'scrollpic_add'=>array('link'=>'/ychadmin/scrollpic/add_view/','sub'=>'site','grandpa'=>'栏目管理'),
'site_news'=>array('link'=>'/ychadmin/article/articlelist','sub'=>'site','grandpa'=>'栏目管理'),


'webparameter'=>array('link'=>'/ychadmin/systemset/sysparameter/?ftype=1','sub'=>'system','grandpa'=>'系统管理'),
'borrowparameter'=>array('link'=>'/ychadmin/systemset/sysparameter/?ftype=2','sub'=>'system','grandpa'=>'系统管理'),
'picparameter'=>array('link'=>'/ychadmin/systemset/sysparameter/?ftype=3','sub'=>'system','grandpa'=>'系统管理'),
'emailparameter'=>array('link'=>'/ychadmin/systemset/sysparameter/?ftype=4','sub'=>'system','grandpa'=>'系统管理'),
'messageparameter'=>array('link'=>'/ychadmin/systemset/sysparameter/?ftype=6','sub'=>'system','grandpa'=>'系统管理'),
'loginparameter'=>array('link'=>'/ychadmin/systemset/sysparameter/?ftype=5','sub'=>'system','grandpa'=>'系统管理'),
'addparameter'=>array('link'=>'/ychadmin/systemset/addparameter','sub'=>'system','grandpa'=>'系统管理'),
'pay'=>array('link'=>'/ychadmin/payment/payonline/','sub'=>'system','grandpa'=>'系统管理'),
'sytemadmin_type'=>array('link'=>'/ychadmin/systemadmin/admin_type/','sub'=>'system','grandpa'=>'系统管理'),
'user_log'=>array('link'=>'/ychadmin/log/load_log_info','sub'=>'system','grandpa'=>'系统管理'),
/*'backup'=>array('link'=>'/ychadmin/backup/backup_show_db','sub'=>'system','grandpa'=>'系统管理'),
*/'systemset'=>array('link'=>'/ychadmin/systemset/edit_view/','sub'=>'system','grandpa'=>'系统管理'),
'sys_adlog'=>array('link'=>'/ychadmin/systemadmin/adloglst/','sub'=>'system','grandpa'=>'系统管理'),
'systemadmin'=>array('link'=>'/ychadmin/systemadmin/admin_list/','sub'=>'system','grandpa'=>'系统管理')
 );
